package com.ruoyi.project.gzbook.commentinfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 图书信息对象 dg_comment_info
 * 
 * @author mhg
 * @date 2021-10-06
 */
public class DgCommentInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 评论信息 */
    @Excel(name = "评论信息")
    private String comment;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public String getComment()
    {
        return comment;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("comment", getComment())
            .append("userId", getUserId())
            .append("bookId", getBookId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
